from setuptools import setup, find_packages
import pathlib

# 读取 requirements.txt 中的依赖
here = pathlib.Path(__file__).parent
requirements = (here / "requirements.txt").read_text(encoding="utf-8").split("\n")
requirements = [line.strip() for line in requirements if line.strip() and not line.startswith("#")]

setup(
    name="generic_logger",
    version="1.0.0",
    packages=find_packages(),
    description="A generic logging utility for Python applications",
    long_description=open("README.md", encoding="utf-8").read(),
    long_description_content_type="text/markdown",
    author="Your Name",
    author_email="your.email@example.com",
    python_requires=">=3.6",
    install_requires=requirements,
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    entry_points={
        "console_scripts": [
            "generic-logger=generic_logger.__main__:main",
        ],
    },
)